//////////////////////////////////////////////////////////////////
// KI-Auswahl
//////////////////////////////////////////////////////////////////

func void B_CampAi()
{
	MEM_Info("CampAi begin");
	if (AI_Tactic == AIT_MUD) { 
		B_MudAI();
	}
	else if (AI_Tactic == AIT_DEFENSIVE) {
		B_DefensiveAI();
	}
	else if (AI_Tactic == AIT_OFFENSIVE) {
		B_OffensiveAI();
	}
	else if (AI_Tactic == AIT_BALANCED) {
		B_BalancedAI();
	}
	else if (AI_Tactic == AIT_ECONOMICAL) { 
		B_EconomicalAI ();
	}
	else {
		MEM_Warn("CampAi - no AI_Tactic found");
		B_BalancedAI();
	};
	MEM_Info("CampAi end");
};

func void B_CheckAiControll (var int campid)
{
	if (B_IsAiControlled(campid))
	{
		AiColor = campid;
		B_CampAi();
	};
};

func void B_Ai ()
{
	B_CheckAiControll(RED);
	B_CheckAiControll(BLUE);
};